package com.example.lvsuo.controller.cxg;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.lvsuo.entity.cxg.FileType;
import com.example.lvsuo.entity.cxg.vo.FileTypeVo;
import com.example.lvsuo.modal.Result;
import com.example.lvsuo.service.cxg.IFileTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 文件类型表 前端控制器
 * </p>
 *
 * @author 心心念念
 * @since 2021-03-30
 */
@RestController
@RequestMapping("/fileType")
public class FileTypeController {

    @Autowired
    IFileTypeService fs;

    @GetMapping
    Result queryFt(){
        return Result.back(fs.list(new QueryWrapper<FileType>().ge("id",5)));
    }

    @GetMapping(params = {"getType=select"})
    public Result queryFileType(){
        return Result.back("ok","20000",fs.list());
    }

}

